home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 8
/
FM Towns Free Software Collection 8.iso
/
fb386
/
eiyoukei
/
cconvrt.bas
next >
Wrap
BASIC Source File
|
1994-06-01
|
2KB
|
44 lines
100 'SAVE "CCONVRT.BAS",A
110 'FBHGーFB386
120 ' V2.2 94.01.03
130 GOSUB *INI
140 NAME "1:CYOURI.DAT" AS "1:CYOURI.BAK"
150 OPEN "0:(72)CYOURI.DAT" AS #1
160 FIELD #1,0 AS DAMMY$,4 AS A1$
170 FIELD #1,4 AS DAMMY$,32 AS A2$
180 FIELD #1,36 AS DAMMY$,32 AS A3$
190 FIELD #1,68 AS DAMMY$,4 AS A4$
200 OPEN "1:(72)CYOURI.DAT" AS #2
210 FIELD #2,0 AS DAMMY$,4 AS B1$
220 FIELD #2,4 AS DAMMY$,32 AS B2$
230 FIELD #2,36 AS DAMMY$,32 AS B3$
240 FIELD #2,68 AS DAMMY$,4 AS B4$
250 FOR I=1 TO LOF(1)
260 GET #1,I
270 LSET B1$=MKS$(CVSMBF(A1$))
280 LSET B2$=A2$
290 LSET B3$=A3$
300 LSET B4$=MKS$(CVSMBF(A4$))
310 PUT #2,I
320 NEXT I
330 CLOSE:RUN "MENTE.BAS"
1000 *INI ON ERROR GOTO *ERR
1010 CLS:PRINT "このプログラムはFB386で実行してください。"
1020 SCREEN@ 0
1030 PRINT "FM-R(FB-HG)のCYOURI.DATを TOWNS(FB-386)のCYOURI.DATに変換します。"
1040 INPUT X$
1050 PRINT "FM-R(FB-HG)のCYOURI.DATをドライブ0にセットしてください。"
1060 INPUT X$
1070 PRINT "TOWNS(FB-386)のCYOURI.DATを作製するフロッピーデスクをドライブ1にセットしてください。"
1080 PRINT "ドライブ1のカレントデイレクトリにCYOURI.DATがある場合にはCYOURI.BAKにリネームします。"
1090 INPUT X$
1095 'SHELL "B:":SHELL "CD \LIB":SHELL "A:"
1100 RETURN
1110 *ERR
1120 IF ERL=140 AND ERR=63 THEN RESUME NEXT
1130 IF ERL=140 AND ERR=64 THEN KILL "1:CYOURI.BAK":RESUME
1135 IF ERL=1020 THEN RESUME 330
1136 IF ERL=1095 THEN RESUME 330
1137 PRINT "ERR=";ERR;," ERL=";ERL
1140 *ERRE ON ERROR GOTO 0:CLOSE:END